home *** CD-ROM | disk | FTP | other *** search
- Function documentation of Creative Sound Library Module
-
- 1. Introduction
-
- Author : T S Lee
- Version : 1.00
- Last Updated : 29 Sep 1989
-
-
- This version uses a more reliable detection scheme, and the
- codes are further optimized.
-
- Please replace all older versions with it.
-
- The library functions provided is for Microsoft C version
- 5.00 and above. All the memory models, SMALL, COMPACT, MEDIUM
- and LARGE are available. These functions are grouped in
- library files named in following conversion:
-
- SBCx.LIB
-
- where "x" is the first character of the respective memory
- model.
-
- The default segment and group name defined in Microsoft C for
- each memory model is used to ensure compatibility. Any global
- variable memtioned in following section must be declared in
- the default data segment '_DATA'.
-
-
- The FM feature of the Sound Blaster Card (SBC) an optional
- item in some OEM versions. So we suggest that if you want to
- play FM music on the Sound Blaster Card, separate FM chip
- detection is required.
-
-
- 2. Function Documentation
-
- Function : unint _ct_card_here()
- Description : Check for the availibities of the various
- music/sound features provided by Creative.
-
- The check is based on the I/O address stored in
- the global variable ct_io_addx which is defined in
- the application program.
-
- Entry : none
- Return : Music/Sound feature available
-
- High byte is alway zero now
- Low byte right most 3 bits indicate as follow
-
- bit 0 : on for C/MS music available
- bit 1 : on for FM music available
- bit 2 : on for Creative voice available
-
- The type of Creative Music/Sound Card available on
- the system can be determined with the return
- value.
-
- Game Blaster Card returns 1. Sound Blaster Card
- without optional FM music returns 5, with the FM
- music it returns 7.
-
-
- Note - The I/O address used for the music/sound card must
- be stored in ct_io_addx before the call.
- (Application can set this variable to the factory
- defualt value, 220 Hex).
-
- - A zero return value may due to wrong I/O address
- used.
-
-
-
- Function : unint sbc_version()
- Description : Return the version number of the DSP on the SBC.
- Entry : none
- Exit : version number, high byte major version
- low byte minor version
-
-
-
-
- Function : void sbc_scan_int
- Description : Scan for the interrupt number selected for the
- voice card and update the global variable
- ct_int_num.
- Entry : ct_io_addx must be set with the correct I/O.
- Exit : The global variable, ct_int_num, is updated with
- one of the following 2, 3, 5 or 7. If it is zero
- on return, the card DMA fails.
-
-
-
- Function : void sbc_dac_spk(unint on_off_flag)
- Description : Turn on/off the DAC speaker based on the
- on_off_flag
- Entry : If the on_off_flag is non-zero, the DAC speak is
- turned on. A zero will turn it off.
- Exit : none
-